﻿using UnityEngine;

public class CaptainFactory : IPersonFactory
{
    public PersonBase CreatePerson(Transform parent)
    {
        var obj = Resources.Load("Prefabs/Captain");
        var go = (GameObject)GameObject.Instantiate(obj);
        go.transform.SetParent(parent, false);
        return go.transform.GetComponent<PersonBase>();
    }
}
